// 文本截断组件
Component({
  
  externalClasses: ['elip-class'],

  properties: {
    line: {
      type: Number,
      value: 0,
      observer: function(newVal, oldVal) {
        let dynamicClass = '';
        if(newVal == 1){
          dynamicClass = 'elip-single_line';
        } else if (newVal > 1){
          dynamicClass = 'elip-multi_line';
        }
        this.setData({
          dynamicClass: dynamicClass
        });
      }
    },
    
  },
  
  data: {
    dynamicClass: ''
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
